{$define MARS_FIREDAC} // To enable MARS FireDAC support
{.$define MARS_UNIDAC} // To enable MARS Devart UniDAC support

{$if compilerversion = 22}
  {$define DelphiXE}
{$ENDIF}

{$if compilerversion = 23}
  {$define DelphiXE2}
{$ENDIF}

{$if compilerversion = 24}
  {$define DelphiXE3}
{$ENDIF}

{$if compilerversion = 25}
  {$define DelphiXE4}
{$ENDIF}

{$if compilerversion = 26}
  {$define DelphiXE5}
{$ENDIF}

{$if compilerversion = 27}
  {$define DelphiXE6}
{$ENDIF}

{$if compilerversion = 28}
  {$define DelphiXE7}
{$ENDIF}

{$if compilerversion = 29}
  {$define DelphiXE8}
{$ENDIF}

{$if compilerversion = 30}
  {$define Delphi10Seattle}
{$ENDIF}

{$if compilerversion = 31}
  {$define Delphi10Berlin}
{$ENDIF}

{$if compilerversion = 32}
  {$define Delphi10Tokyo}
{$ENDIF}

{$if compilerversion = 33}
  {$define Delphi10Rio}
{$ENDIF}

{$if compilerversion = 34}
  {$define Delphi10Sydney}
{$ENDIF}

{$if compilerversion >= 22}
  {$define DelphiXE_UP}
{$ENDIF}

{$if compilerversion >= 23}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
{$ENDIF}

{$if compilerversion >= 24}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
{$ENDIF}

{$if compilerversion >= 25}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
{$ENDIF}

{$if compilerversion >= 26}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
{$ENDIF}

{$if compilerversion >= 27}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
  {$define DelphiXE6_UP}
{$ENDIF}

{$if compilerversion >= 28}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
  {$define DelphiXE6_UP}
  {$define DelphiXE7_UP}
{$ENDIF}

{$if compilerversion >= 29}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
  {$define DelphiXE6_UP}
  {$define DelphiXE7_UP}
  {$define DelphiXE8_UP}
{$ENDIF}

{$if compilerversion >= 30}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
  {$define DelphiXE6_UP}
  {$define DelphiXE7_UP}
  {$define DelphiXE8_UP}
  {$define Delphi10Seattle_UP}
{$ENDIF}

{$if compilerversion >= 31}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
  {$define DelphiXE6_UP}
  {$define DelphiXE7_UP}
  {$define DelphiXE8_UP}
  {$define Delphi10Seattle_UP}
  {$define Delphi10Berlin_UP}
{$ENDIF}

{$if compilerversion >= 32}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
  {$define DelphiXE6_UP}
  {$define DelphiXE7_UP}
  {$define DelphiXE8_UP}
  {$define Delphi10Seattle_UP}
  {$define Delphi10Berlin_UP}
  {$define Delphi10Tokyo_UP}  
{$ENDIF}

{$if compilerversion >= 33}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
  {$define DelphiXE6_UP}
  {$define DelphiXE7_UP}
  {$define DelphiXE8_UP}
  {$define Delphi10Seattle_UP}
  {$define Delphi10Berlin_UP}
  {$define Delphi10Tokyo_UP}
  {$define Delphi10Rio_UP}
{$ENDIF}

{$if compilerversion >= 34}
  {$define DelphiXE_UP}
  {$define DelphiXE2_UP}
  {$define DelphiXE3_UP}
  {$define DelphiXE4_UP}
  {$define DelphiXE5_UP}
  {$define DelphiXE6_UP}
  {$define DelphiXE7_UP}
  {$define DelphiXE8_UP}
  {$define Delphi10Seattle_UP}
  {$define Delphi10Berlin_UP}
  {$define Delphi10Tokyo_UP}
  {$define Delphi10Rio_UP}
  {$define Delphi10Sydney_UP}
{$ENDIF}
